package com.ruicar.afs.cloud.bizcommon.proxy;


import com.lowagie.text.FontFactoryImp;
import com.ruicar.afs.cloud.bizcommon.config.FontsProperties;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
@Data
public class ExtFontFactoryImp extends FontFactoryImp {
	private FontsProperties fontsProperties;
	public ExtFontFactoryImp(){
		     super();
		
	}
	
	public int registerDirectories(){
		
		 	String fontsPathStr="";
			try {
				fontsPathStr = fontsProperties.getFontsDir();
			} catch (Exception e) {
				e.printStackTrace();
			}
		    int i = 0;
	        i += registerDirectory("/gwmfc/fonts",true);//写死了，扛不住了
	        return i;
	
		}
	
	

}
